package com.heima.crm.pojos.dtos;

import lombok.Data;

@Data
public class RolePageDto {

    private  Integer  pageSize;

    private  Integer  pageNum;

    private String roleName;

    private  Integer  status;

    public void checkParam() {
        if (this.pageNum == null || this.pageNum < 0) {
            setPageNum(1);
        }
        if (this.pageSize == null || this.pageSize < 0 || this.pageSize > 100) {
            setPageSize(10);
        }
    }
}
